package com.apex.crm.dao;

import com.apex.crm.base.BaseMapper;
import com.apex.crm.vo.User;
import org.springframework.dao.DataAccessException;

import java.util.List;
import java.util.Map;

public interface UserMapper extends BaseMapper<User,Integer> {
   // int deleteByPrimaryKey(Integer id);

    //int insert(User record);

   // Integer insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    Integer updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    //根据用户名查询用户对象
    User queryUserByUserName(String userName);


    // 查询所有的销售人员
    public List<Map<String, Object>> queryAllSales();


    int insert(User user);


    int deleteBatchIds(Integer[] ids) throws DataAccessException;

    List<Map<String, Object>> queryAllCustomerManager();
}